package com.cychat.mall.service.impl;

import com.Cychat.commons.entity.pojo.OrderDetail;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cychat.mall.mapper.OrderDetailMapper;
import com.cychat.mall.service.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Auther: 刘俊  <br/>
 * Date: 2025-11-7:上午 9:21  <br/>
 * Description: 订单详情服务实现类
 */
@Service
public class OrderDetailServiceImpl extends ServiceImpl<OrderDetailMapper, OrderDetail> implements OrderDetailService {
    @Autowired
    private OrderDetailMapper orderDetailMapper;
    @Override
    public void insertBatch(List<OrderDetail> orderDetails) {
        for (OrderDetail orderDetail : orderDetails) {
            orderDetailMapper.insert(orderDetail);
        }
    }
}
